package edu.zut;

import java.util.Scanner;

public class First {
    public static void main(String[] args) {
        System.out.println("您要求几个数的平均数");
        Scanner scan=new Scanner(System.in);
        int a=scan.nextInt();
        double sum=0,ave;
        for (int i = 0; i < a; i++) {
            System.out.println("请输入第"+(i+1)+"个数字");
            int b=scan.nextInt();
            sum+=b;
        }
        ave=sum/a;
        System.out.printf("%.3f",ave);
    }
}
